import request from '../utils/request';

//模拟数据
export const fetchData = query => {
    return request({
        url: 'http://localhost:8080/table.json',
        method: 'get',
        params: query
    });
};
//查询用户列表
export const GetUsers = query => {
    return request({
        url: '/Users/GetList',
        method: 'get',
        params: query
    });
};
//更新数据
export const AddOrEdit = data => {
    return request({
        url: '/Users/DeleteOrUpdate',
        method: 'post',
        data: data
    });
};
//删除用户数据
export const deleteUser = data => {
    return request({
        url: '/Users/DeleteUser',
        method: 'post',
        data: data
    });
};

//批量删除
export const batchDelete=data=>{
    return request({
        url: '/Users/BatchDelete',
        method: 'post',
        data:data
    });
} 
//验证用户登录
export const checkUser=data=>{
    return request({
        url:'Users/CheckUser',
        method: 'post',
        data:data
    });

}







